package org.jeecg.modules.gongqiang.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.fund.entity.JiStaticCount;
import org.jeecg.modules.gongqiang.entity.Userhome;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 用户表
 * @Author: jeecg-boot
 * @Date:   2024-06-11
 * @Version: V1.0
 */
public interface UserhomeMapper extends BaseMapper<Userhome> {

    void setAccessToken(Integer id, String token);

    IPage<Userhome> getPageList(Page page, @Param(Constants.WRAPPER) Wrapper<Userhome> queryWrapper);

    @Select("select * from userhome where username=#{username}")
    Userhome getByUsername(String username);
}
